<?php 
session_start();
$_SESSION['data'];
$array = unserialize($_SESSION['data']);
include_once('function.php');
$db=new db(); 
$sql = $array;
$file =$_SESSION['datatime'];
$map=array("訂貨號",'用戶名','公司名稱','聯絡電話','聯系地阯','發佈時間','状态');//表头 
$db->toExcel($sql,$map,$file); 
?>